package org.jeecg.modules.engineering.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 设备采集信息表
 * @Author: jeecg-boot
 * @Date:   2019-08-20
 * @Version: V1.0
 */
@Data
@TableName("equip_collect_info")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="equip_collect_info对象", description="设备采集信息表")
public class EquipCollectInfo {
    
	/**采集明细id*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "采集明细id")
	private String id;
	/**设备id*/
	@Excel(name = "设备id", width = 15,dicCode = "id" ,dictTable="equip_info",dicText="equip_name")
    @ApiModelProperty(value = "设备id")
	@Dict(dicCode = "id" ,dictTable="equip_info",dicText="equip_name")
	private String equipId;
	/**物业公司id*/
	private Long tenantId;
	/**小区/项目id*/
	@Excel(name = "小区", width = 15,dicCode = "id" ,dictTable="base_project",dicText="name")
	@ApiModelProperty(value = "小区")
	private String projectId;
	/**采集项id*/
	@Excel(name = "采集项id", width = 15,dicCode = "id" ,dictTable="equip_collect_item",dicText="collect_name")
    @ApiModelProperty(value = "采集项id")
	@Dict(dicCode = "id" ,dictTable="equip_collect_item",dicText="collect_name")
	private String itemId;
	/**采集数值*/
	@Excel(name = "采集数值", width = 15)
    @ApiModelProperty(value = "采集数值")
	private String value;
	/**是否为推送接收的数据 0为不是 1为是*/
	@ApiModelProperty(value = "是否为推送接收的数据")
	private Integer isAccept;
	/**采集渠道*/
	@Excel(name = "采集渠道", width = 15,dicCode = "id" ,dictTable="equip_data_collector",dicText="collector_name")
    @ApiModelProperty(value = "采集渠道")
	@Dict(dicCode = "id" ,dictTable="equip_data_collector",dicText="collector_name")
	private String collectChannel;
	/**采集时间*/
	@Excel(name = "采集时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "采集时间")
	private Date collectTime;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
	private String createBy;
	/**修改人*/
	@ApiModelProperty(value = "修改人")
	private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "修改时间")
	private Date updateTime;
	/**删除标识0-正常,1-已删除*/
	@ApiModelProperty(value = "删除标识")
	@TableLogic
	private Integer delFlag;
}
